home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / WTJ208.ZIP / OOPCODE / JUL93 / BAG.CPP < prev    next >
C/C++ Source or Header  |  1993-05-08  |  368b  |  19 lines

  1. #include "bag.h"
  2. #include "strclass.h"
  3.  
  4. main()
  5. {
  6.     cout << "\nTest class Bag\n";
  7.     Bag aBag; 
  8.  
  9.     aBag.add(*new String("one"));
  10.     aBag.add(*new String("two"));
  11.     aBag.add(*new String("three"));
  12.     aBag.add(*new String("one"));
  13.     aBag.add(*new String("two"));
  14.     aBag.add(*new String("three"));
  15.  
  16.     cout << aBag << "\n";
  17.     return 0;
  18. }
  19.